package com.tengniu.api.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;

/**
 * 读取项目相关配置
 *
 * @author lmq
 */
@AllArgsConstructor
@NoArgsConstructor
@NotBlank
@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {

    private String header;

    private String secret;

    private Integer expireTime;
}
